<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Login extends Model
{
    protected $table='admin';
//    手机号密码登录
public static function telPwd($postData){
    return self::where('tel',$postData)->find();
}
//查询密码
public static function searchPwd($postData){
    return self::where('tel',$postData)->find();
}
//修改密码
    public static function updatePwd($postData,$tel){
        return self::update($postData,['tel'=>$tel]);
    }
}
